#!/bin/bash

touch Makefile.inc
echo -n 'ROOT = ' > Makefile.inc
(cd ..; pwd >> src/Makefile.inc)

echo 'LIB_DIR = $(ROOT)/lib' >> Makefile.inc
echo 'INCLUDE_DIR = $(ROOT)/include' >> Makefile.inc
echo 'BIN_DIR = $(ROOT)/bin' >> Makefile.inc

echo 'TOOL_LIBS = -luriparser' >> Makefile.inc
echo 'LIBS = -ltcetools $(TOOL_LIBS)' >> Makefile.inc
echo 'INCLUDES = -I$(INCLUDE_DIR)' >> Makefile.inc

echo 'TOOLS_LIB_FILE = $(LIB_DIR)/libtcetools.a' >> Makefile.inc

echo 'CXX = g++ -g -L$(LIB_DIR)' >> Makefile.inc

echo 'OBJ_DIR = objs' >> Makefile.inc
